/*
 * aqua-firefox-theme
 * popups-content.css
 *
 * Copyright (c) 2019 Payson Wallach
 *
 * Released under the terms of the GNU General Public License, version 3
 * (https://gnu.org/licenses/gpl.html)
 */

@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";

/* style main context menu and buttons */

#context-navigation {
  padding: 0 4px 4px;
}

#context-navigation>menuitem>.menu-iconic-left {
  margin: auto !important;
}

#context-navigation menuitem {
  --toolbarbutton-active-background: transparent !important;
  --toolbarbutton-hover-background: transparent !important;
}

/* remove icons from the main context menu */

#contentAreaContextMenu menuitem image,
#contentAreaContextMenu menu image {
  visibility: hidden;
}

#contentAreaContextMenu menugroup menuitem image,
#contentAreaContextMenu .menu-right image {
  visibility: visible;
}

/* remove main menu items icons */

panelview vbox.panel-subview-body>toolbarbutton image {
  display: none;
}

panelview vbox.panel-subview-body>toolbarbutton label {
  padding-inline-start: 0 !important;
}

#appMenu-zoom-controls>spacer,
#appMenu-edit-controls>spacer {
  width: 12px !important;
}

/* main menu */
#appMenu-popup .panel-banner-item:after {
  -moz-box-ordinal-group: 0;
  margin: 0 8px 0 0 !important;
}

/* user sync account remove avatar */
#fxa-menu-avatar {
  display: none;
}

/* add search engine button remove icon */
#pageAction-panel-addSearchEngine .toolbarbutton-badge-stack {
  display: none !important;
}

/* all-tabs popover */

.all-tabs-item[selected] {
  border-left: 3px solid var(--aqua-tab-active-border-bottom-color);
  box-shadow: none !important;
}

.all-tabs-item>.all-tabs-secondary-button label {
  margin: 0 !important;
}

/* downloads popover */

#downloadsPanel-mainView .download-state {
  padding: 8px !important;
  border: 0 !important;
  border-radius: 5px !important;
  display: flex;
  align-items: center;
}

#downloadsPanel-mainView .download-state:hover {
  background-color: var(--aqua-popover-button-hover-background) !important;
}

#downloadsPanel-mainView .download-state:last-child {
  margin-bottom: 8px !important;
}

#downloadsPanel-mainView .downloadMainArea {
  flex: 1;
  display: flex;
}

#downloadsPanel-mainView .downloadMainArea:hover {
  background: transparent !important;
}

#downloadsPanel-mainView .downloadTypeIcon {
  margin: 0 !important;
  margin-right: 6px !important;
}

#downloadsPanel-mainView .downloadContainer {
  margin-inline-end: 0 !important;
  flex: 1;
  display: flex;
  flex-direction: column;
}

#downloadsPanel-mainView .download-state .downloadButton .button-box {
  padding: 0 !important;
  margin: 0 !important;
}

#downloadsPanel-mainView .download-state toolbarseparator {
  display: none;
}

/* customization overflow menu position */

#customization-panel-container {
  padding: 0 75px 25px !important;
  margin-top: 10px;
  z-index: 10;
}

#customization-panelWrapper>.panel-arrowbox {
  margin-bottom: -5px !important;
}

/* confirmation hint */

#confirmation-hint .panel-arrowcontent {
  background: var(--aqua-button-suggested-action-background) !important;
  border-color: var(--aqua-button-suggested-action-border-color) !important;
}

#confirmation-hint .panel-arrow {
  fill: var(--aqua-button-suggested-action-border-color) !important;
  stroke: var(--aqua-button-suggested-action-border-color) !important;
}

#confirmation-hint-message {
  color: white !important;
}
